{
  "properties" : { },
  "id" : "c5dee21842a44c939dd753e6528ee117",
  "script" : null,
  "groupId" : "c8cef91cf2b740d8b90a52d8ca575633",
  "name" : "001.店铺搜索",
  "createTime" : 1748838873525,
  "updateTime" : 1748840856254,
  "lock" : null,
  "createBy" : null,
  "updateBy" : null,
  "path" : "/shopGet",
  "method" : "POST",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "{\n   \"q\":\"官方旗舰店\"\n}",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"code\": 200,\n    \"message\": \"success\",\n    \"data\": {\n        \"list\": [\n            {\n                \"pictUrl\": \"http://logo.taobaocdn.com/shop-logohttps://img.alicdn.com/imgextra/i3/6000000001917/O1CN01mJMLXw1Q2214jLt3j_!!6000000001917-2-shopmanager.png\",\n                \"sellerNick\": \"华为同夏专卖店\",\n                \"shopTitle\": \"华为同夏专卖店\",\n                \"shopType\": \"B\",\n                \"shopUrl\": \"http://shop233205504.taobao.com\",\n                \"userId\": 145277524475183780\n            },\n            {\n                \"pictUrl\": \"http://logo.taobaocdn.com/shop-logohttps://img.alicdn.com/imgextra/i3/6000000002372/O1CN01RGf0xr1TOQD1meVNo_!!6000000002372-0-shopmanager.jpg\",\n                \"sellerNick\": \"华为典海专卖店\",\n                \"shopTitle\": \"华为典海专卖店\",\n                \"shopType\": \"B\",\n                \"shopUrl\": \"http://shop284863854.taobao.com\",\n                \"userId\": 117129494498800800\n            },\n            {\n                \"pictUrl\": \"http://logo.taobaocdn.com/shop-logohttps://img.alicdn.com/imgextra/i2/6000000008110/O1CN01cLy9ea29mQpuDQrz1_!!6000000008110-2-shopmanager.png\",\n                \"sellerNick\": \"华为上乘专卖店\",\n                \"shopTitle\": \"华为上乘专卖店\",\n                \"shopType\": \"B\",\n                \"shopUrl\": \"http://shop141485426.taobao.com/\",\n                \"userId\": 4692893351085740000\n            },\n            {\n                \"pictUrl\": \"http://logo.taobaocdn.com/shop-logohttps://img.alicdn.com/imgextra/i1/6000000000522/O1CN01yVVOLy1Fj7UIIwrkR_!!6000000000522-0-shopmanager.jpg\",\n                \"sellerNick\": \"华为五洲联鑫专卖店\",\n                \"shopTitle\": \"华为五洲联鑫专卖店\",\n                \"shopType\": \"B\",\n                \"shopUrl\": \"http://shop364930751.taobao.com\",\n                \"userId\": 253328606607060500\n            },\n            {\n                \"pictUrl\": \"http://logo.taobaocdn.com/shop-logohttps://img.alicdn.com/imgextra/i1/2214190773574/O1CN01q3VqkY1cGwReMylCg_!!2214190773574-0-shopmanager.jpg\",\n                \"sellerNick\": \"华为智选五洲联鑫专卖店\",\n                \"shopTitle\": \"华为智选五洲联鑫专卖店\",\n                \"shopType\": \"B\",\n                \"shopUrl\": \"http://shop180571022.taobao.com\",\n                \"userId\": 106805370951864\n            },\n            {\n                \"pictUrl\": \"http://logo.taobaocdn.com/shop-logohttps://img.alicdn.com/imgextra/i3/6000000006096/O1CN01ThjgeV1uu19m1psvj_!!6000000006096-2-shopmanager.png\",\n                \"sellerNick\": \"华为友信猫专卖店\",\n                \"shopTitle\": \"华为友信猫专卖店\",\n                \"shopType\": \"B\",\n                \"shopUrl\": \"http://shop128891420.taobao.com/\",\n                \"userId\": 145383500911172160\n            },\n            {\n                \"pictUrl\": \"http://logo.taobaocdn.com/shop-logohttps://img.alicdn.com/imgextra/i1/2214011964549/O1CN01NKKyrP1jTUcNZmNOn_!!2214011964549-0-shopmanager.jpg\",\n                \"sellerNick\": \"华为智选万智专卖店\",\n                \"shopTitle\": \"华为智选万智专卖店\",\n                \"shopType\": \"B\",\n                \"shopUrl\": \"http://shop592580321.taobao.com\",\n                \"userId\": 4657955254438100000\n            },\n            {\n                \"pictUrl\": \"http://logo.taobaocdn.com/shop-logohttps://img.alicdn.com/imgextra/i3/2210898759064/O1CN01PhPAM12GpMyCByCsz_!!2210898759064.png\",\n                \"sellerNick\": \"华为舒耀专卖店\",\n                \"shopTitle\": \"华为舒耀专卖店\",\n                \"shopType\": \"B\",\n                \"shopUrl\": \"http://shop551791044.taobao.com\",\n                \"userId\": 45248367649968640\n            },\n            {\n                \"pictUrl\": \"http://logo.taobaocdn.com/shop-logohttps://img.alicdn.com/imgextra/i2/6000000007454/O1CN01cmc9NF24vz0yf35Bf_!!6000000007454-2-shopmanager.png\",\n                \"sellerNick\": \"华为子母路由专卖店\",\n                \"shopTitle\": \"华为子母路由专卖店\",\n                \"shopType\": \"B\",\n                \"shopUrl\": \"http://shop336742607.taobao.com\",\n                \"userId\": 4800838467783314000\n            },\n            {\n                \"pictUrl\": \"http://logo.taobaocdn.com/shop-logohttps://img.alicdn.com/imgextra/i4/6000000004655/O1CN01UHjocS1kG2QTdOwdd_!!6000000004655-2-shopmanager.png\",\n                \"sellerNick\": \"华为翼天宏专卖店\",\n                \"shopTitle\": \"华为翼天宏专卖店\",\n                \"shopType\": \"B\",\n                \"shopUrl\": \"http://shop328226047.taobao.com\",\n                \"userId\": 144292772224115230\n            },\n            {\n                \"pictUrl\": \"http://logo.taobaocdn.com/shop-logohttps://img.alicdn.com/imgextra/i2/2217693185585/O1CN01JjIKoR1r7yy3mGAI6_!!2217693185585.jpg\",\n                \"sellerNick\": \"华为手机专卖店\",\n                \"shopTitle\": \"华为手机专卖店\",\n                \"shopType\": \"B\",\n                \"shopUrl\": \"http://shop406628428.taobao.com\",\n                \"userId\": 181481970622152700\n            },\n            {\n                \"pictUrl\": \"http://logo.taobaocdn.com/shop-logohttps://img.alicdn.com/imgextra/i3/2217974248763/O1CN01fuJK6E2EbVgNUOavl_!!2217974248763.png\",\n                \"sellerNick\": \"华为聚链专卖店\",\n                \"shopTitle\": \"华为聚链专卖店\",\n                \"shopType\": \"B\",\n                \"shopUrl\": \"http://shop234057760.taobao.com\",\n                \"userId\": 181411056551407650\n            },\n            {\n                \"pictUrl\": \"http://logo.taobaocdn.com/shop-logohttps://img.alicdn.com/imgextra/i1/6000000003081/O1CN018inHRV1Yd94jtOhur_!!6000000003081-0-shopmanager.jpg\",\n                \"sellerNick\": \"华为华尔盛世专卖店\",\n                \"shopTitle\": \"华为华尔盛世专卖店\",\n                \"shopType\": \"B\",\n                \"shopUrl\": \"http://shop69258257.taobao.com/\",\n                \"userId\": 4620693372301099000\n            },\n            {\n                \"pictUrl\": \"http://logo.taobaocdn.com/shop-logohttps://img.alicdn.com/imgextra/i4/2211321078438/O1CN01vfCmXm2CCf3xzhgAn_!!2211321078438.png\",\n                \"sellerNick\": \"华为铭枫博睿专卖店\",\n                \"shopTitle\": \"华为铭枫博睿专卖店\",\n                \"shopType\": \"B\",\n                \"shopUrl\": \"http://shop529115663.taobao.com\",\n                \"userId\": 180214914473925660\n            },\n            {\n                \"pictUrl\": \"http://logo.taobaocdn.com/shop-logohttps://img.alicdn.com/imgextra/i3/2217692214527/O1CN01JQ20Zm1jJPw0P3FLY_!!2217692214527.png\",\n                \"sellerNick\": \"华为智慧生活专卖店\",\n                \"shopTitle\": \"华为智慧生活专卖店\",\n                \"shopType\": \"B\",\n                \"shopUrl\": \"http://shop443890193.taobao.com\",\n                \"userId\": 181481957607299140\n            },\n            {\n                \"pictUrl\": \"http://logo.taobaocdn.com/shop-logohttps://img.alicdn.com/imgextra/i1/6000000004406/O1CN01mI8I541iPzp9TzB0l_!!6000000004406-0-shopmanager.jpg\",\n                \"sellerNick\": \"华为智信百诚专卖店\",\n                \"shopTitle\": \"华为智信百诚专卖店\",\n                \"shopType\": \"B\",\n                \"shopUrl\": \"http://shop485039941.taobao.com\",\n                \"userId\": 144220893666610720\n            },\n            {\n                \"pictUrl\": \"http://logo.taobaocdn.com/shop-logohttps://img.alicdn.com/imgextra/i1/6000000005225/O1CN01hLdOiH1oT6BUplBZn_!!6000000005225-0-shopmanager.jpg\",\n                \"sellerNick\": \"华为宏威科锐专卖店\",\n                \"shopTitle\": \"华为宏威科锐专卖店\",\n                \"shopType\": \"B\",\n                \"shopUrl\": \"http://shop71182329.taobao.com/\",\n                \"userId\": 4611758041006681000\n            },\n            {\n                \"pictUrl\": \"http://logo.taobaocdn.com/shop-logohttps://img.alicdn.com/imgextra/i1/6000000003592/O1CN01A5W7zf1cPBQbV9wfd_!!6000000003592-2-shopmanager.png\",\n                \"sellerNick\": \"华为三人和专卖店\",\n                \"shopTitle\": \"华为三人和专卖店\",\n                \"shopType\": \"B\",\n                \"shopUrl\": \"http://shop523384941.taobao.com\",\n                \"userId\": 4827860477864521000\n            },\n            {\n                \"pictUrl\": \"http://logo.taobaocdn.com/shop-logohttps://img.alicdn.com/imgextra/i1/2215576998067/O1CN010pXPbN29Sjsdn4cdS_!!2215576998067-0-shopmanager.jpg\",\n                \"sellerNick\": \"华为美好向往专卖店\",\n                \"shopTitle\": \"华为美好向往专卖店\",\n                \"shopType\": \"B\",\n                \"shopUrl\": \"http://shop229773359.taobao.com\",\n                \"userId\": 4865191081487238000\n            },\n            {\n                \"pictUrl\": \"http://logo.taobaocdn.com/shop-logohttps://img.alicdn.com/imgextra/i2/6000000002333/O1CN01MB6OM01T6YlYqOwKR_!!6000000002333-0-shopmanager.jpg\",\n                \"sellerNick\": \"华为宇荪专卖店\",\n                \"shopTitle\": \"华为宇荪专卖店\",\n                \"shopType\": \"B\",\n                \"shopUrl\": \"http://shop106951432.taobao.com/\",\n                \"userId\": 109213545362779200\n            }\n        ],\n        \"total\": 20\n    },\n    \"timestamp\": 1748839516416,\n    \"executeTime\": 150\n}",
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : null
}
================================
import tbk;    //导入tbk模块

//q 关键词
//fields user_id,shop_title,shop_type,seller_nick,pict_url,shop_url
var params =  {
    apiMethodName:"taobao.tbk.shop.get"
    ,fields:"user_id,shop_title,shop_type,seller_nick,pict_url,shop_url"
    };
if(body!=null){
    params.putAll(body);
}
params.put("pageNo",  body.current);
params.put("pageSize",  body.size);
var response = tbk.execute(params);
if(response.errorCode!="") {
    exit 500,response.msg;
}
return {list:response.results,total:response.totalResults};

